package com.ai.entity;

import java.util.Date;
import java.util.Calendar;

public class MemberCard {
	int cardNo;
	int memberId;
	String type;
	int times;
	Date deadline;
	
	
	public MemberCard(int id, String type) {
		super();
		this.memberId = id;
		this.type = type;
		Calendar cd = Calendar.getInstance();
		cd.add(Calendar.YEAR, +1);
		this.deadline = cd.getTime();	
	}
	
	
	public MemberCard(int id, String type, int times) {
		super();
		this.memberId = id;
		this.type = type;
		this.times = times;
	}


	public int getCardNo() {
		return cardNo;
	}
	public void setCardNo(int cardNo) {
		this.cardNo = cardNo;
	}
	public int getMemberId() {
		return memberId;
	}
	public void setMemberId(int id) {
		this.memberId = id;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public int getTimes() {
		return times;
	}
	public void setTimes(int times) {
		this.times = times;
	}
	public Date getDeadline() {
		return deadline;
	}
	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}
	
	
}


